/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

'use strict';
import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View,
  Image,
  TextInput,
  ScrollView,
  Alert,
  TouchableOpacity,
  Navigator
} from 'react-native';
import FirstPage from './firstPage';
class AwesomeProject extends Component {
  render() {
      var defaultName = 'FirstPage';
      var defaultComponent = FirstPage;
      return (
          <Navigator
              initialRoute={{ name: defaultName, component: defaultComponent }}
              configureScene={(route) => {
              return Navigator.SceneConfigs.HorizontalSwipeJump;
          }}
          renderScene={(route, navigator) => {
              let Component = route.component;
              return <Component {...route.params} navigator={navigator} />
          }}/>
      );
    }
  }
AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);
